import Layout from "@/layout";
import emptyLayout from "@/layout/emptyRouter.vue";

export default {
    path: "/agentManage",
    meta: {
        title: "代理商管理",
        roles: ["agentManage"],
        icon: "el-icon-s-data"
    },
    component: Layout,
    redirect: "/agentManage",
    children: [

        {
            path: "agentManageUser",
            meta: {
                title: "代理商列表",
                roles: ["agentManage:users"],
                icon:"el-icon-s-grid",
                noCache: false,
            },
            component: () => import("@/views/models/agentManage/user.vue"),
            name: "AgentUserManageList"
        },
        {
            path: "agentManageUserAdd",
            meta: {
                title: "添加代理商客服",
                roles: ["agentManage:add"],
            },
            component: () => import("@/views/models/agentManage/add-user.vue"),
            name: "AgentManageUserAdd",
            hidden: true
        },
        {
            path: "agentManageUserEdit",
            meta: {
                title: "修改信息",
                roles: ["agentManage:edit"]
            },
            component: () =>
                import("@/views/models/sys/agent/add-user.vue"),
            name: "AgentUserAdd",
            hidden: true
        },
        {
            path: "agentManageRecharge",
            meta: {
                title: "代理商充值列表",
                roles: ["agentManage:recharge"],
                icon:"el-icon-s-goods"
            },
            component: () => import("@/views/models/agentManage/recharge.vue"),
            name: "AgentManageRechargeList",
        },

        {
            path: "packageProduct",
            meta: {
                title: "套餐开课",
                roles: ["agentManage:product"],
                icon:"el-icon-s-management"
            },
            component: () => import("@/views/models/agentManage/product2.vue"),
            name: "PackageProduct",
        },
        {
            path: "packageSku",
            meta: {
                title: "sku列表",
                roles: ["agentManage:sku"],

            },
            component: () => import("@/views/models/agentManage/skuComponent.vue"),
            name: "SkuComponent",
            hidden:true
        },


    ]
}
